package com.pengshun.modules.api.system.domain;

import com.fasterxml.jackson.annotation.JsonView;
import com.pengshun.modules.api.coal.validator.First;
import com.pengshun.modules.api.coal.validator.Second;
import com.pengshun.modules.common.ReslutView;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Transient;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import java.util.List;

@Entity
@Data
@Table(name = "ps_city")
@NoArgsConstructor
public class Citys {

    @Id
    private  Integer cityId;
    private String city;

    private Integer provinceId;

    private String firstLetter;
    private String secondLetter;

    public Citys(Integer cityId, String city, Integer provinceId) {
        this.cityId = cityId;
        this.city = city;
        this.provinceId = provinceId;
    }
}
